package com.tianjin.weight.behaviour.interfaces;

import com.tianjin.weight.entity.SysUser;
import com.tianjin.weight.vo.req.LoginReqVO;
import com.tianjin.weight.vo.resp.LoginRespVO;

import java.util.List;

public interface UserAuthBehavior<T extends SysUser> {
    String refreshToken(String refreshToken,String accessToken) throws Exception;
    List<T> getUserLoginInfo(Long userId) throws Exception;

    LoginRespVO login(LoginReqVO vo) throws Exception;
    Boolean logging(LoginReqVO vo) throws Exception;
    void logout(String accessToken,String refreshToken) throws Exception;
}
